<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Bevel babel</title>
    <style>
        .label {
            position: relative;
            overflow: hidden;
        }
        .label-bar {
            text-align: center;
            background: red;
            position: absolute;
            top:80px;
            left: 0px;
            width: 141px;
            height:20px;
            transform-origin: 0 100%;
            transform: rotate(-45deg);
        }
    </style>
</head>
<body>
<div class="label">
    <div class="label-bar">打折</div>
    <img src="https://pic1.zhimg.com/50/v2-6c5aa2304a93b7fbaf903e3560543d7b_hd.jpg" />
</div>
</body>
</html>
